package com.ranjiaqi.date;

import java.util.Date;

/**
 * @ClassName TestDateConstruct
 * @Description TODO
 * @Author hp
 * @Date 2021/6/21 20:48
 * @Version 1.0
 **/
public class TestDateConstruct   {
    public static void main(String[] args) {
        //获得本地时间
        Date date = new Date();
        //调用Date类的toString函数
        System.out.println(date);
    }
}
